
var handleLogin = require('../../utils/handleLogin.js')
let app = getApp()
Page({
  /**
   * 页面的初始数据
   */
  data: {
    hasUserInfo: true,
    userInfo: null,
  },

  onLoad: function (options) {
    
  },
  onShow: function (options) {
    this.setData({
      userInfo: app.globalData.userInfo
    })
  },

  onJumpToHope: function (event) {
    handleLogin.isLogin(this.jumpToHope)
  },
  jumpToHope: function (event) {
    wx.navigateTo({
      url: '/pages/hope/hope?isHope=' + 1,
    })
  },
  onJumpToLike: function (event) {
    handleLogin.isLogin(this.jumpToLike)
  },
  jumpToLike: function (event){
    wx.navigateTo({
      url: '/pages/hope/hope?isHope=' + 0, 
    })
  }

})
